import service from '@/server'


export const userPage = (params) => {
    return service({
        url: '/system/user/page',
        method: 'get',
        params,
        setting: {
            json: true,
            isToken: true
        }
    })
}


export const userDelete = (params) => {
    return service({
        url: '/system/user/delete',
        method: 'delete',
        params,
        setting: {
            json: true,
            isToken: true
        }
    })
}

export const userGet = (params) => {
    return service({
        url: '/system/user/get',
        method: 'get',
        params,
        setting: {
            json: true,
            isToken: true
        }
    })
}

export const userCreate = (params) => {
    return service({
        url: '/system/user/create',
        method: 'post',
        data: params,
        setting: {
            json: true,
            isToken: true
        }
    })
}

export const userUpdate = (params) => {
    return service({
        url: '/system/user/update',
        method: 'put',
        data: params,
        setting: {
            json: true,
            isToken: true
        }
    })
}